package com.datounet.flutterapp;

import com.datounet.flutterapp.Locat.LocationMgr;
import com.datounet.flutterapp.WebSocket.SocketMgr;

import io.flutter.app.FlutterApplication;

public class MyApplication extends FlutterApplication {

    private static MyApplication instance;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
//        NativeTTSMgr.init(this);
        BuglyManager.init(this);
        LocationMgr.init(this);
    }

    @Override
    public void onTerminate() {
        SocketMgr.dispose();
        LocationMgr.dispose();
        super.onTerminate();
    }


    public static MyApplication getInstance() {
        return instance;
    }
}
